package mvc.model.service;

import mvc.model.pojos.UserBean;

import java.util.List;

public interface UserService {
    UserBean login(String uname, String upass);

    UserBean queryOne(int uid);

    UserBean queryOne(String uname);

    List<UserBean> query();

    boolean updateUser(int uid, UserBean userBean);

    boolean addUser(UserBean userBean);
}
